﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace Model
{
    [Serializable]
    public class EscOrders : MarshalByRefObject
    {
     
       public string ORDER_SN { get; set; }
       public string USERID { get; set; }
       public string ORDER_STATUS { get; set; }
       public string CONSIGNEE { get; set; }
       public string ADDRESS { get; set; }
       public string TEL { get; set; }
       public string MOBILE { get; set; }
       public string BEST_TIME { get; set; }
       public string SHIPPINGNAME { get; set; }
       public string PAYNAME { get; set; }
       public string GOODSAMOUNT { get; set; }
      
    }
 
    public class SalesApp
    {
        public string SHEETID { get; set; }
        public string ORDERSN { get; set; }
        public string USERID { get; set; }
        public string SALEORDERFLAG { get; set; }
        public string CONSIGNEE { get; set; }
        public string ADDRESS { get; set; }
        public string TELL { get; set; }
        public string MOBILE { get; set; }
     
        public string SHIPPINGNAME { get; set; }
        public string PAYNAME { get; set; }
        public string GOODSAMOUNT { get; set; }
        public DateTime RATIONDATE { get; set; }
        public int RATIONTIME{ get; set; }
    }

    [Serializable]
    public class OrderList
    {
        public IEnumerable<EscOrders> OrderMiss = new List<EscOrders>();
        public IEnumerable<EscOrders> OrderStutsDiff = new List<EscOrders>();
        public List<EscOrders> OrderDistribution = new List<EscOrders>();

        //public void StutsDiffAddOrder(EscOrders order)
        //{
        //    OrderStutsDiff.Add(order);
        //}
        public void DistributionDiffAddOrder(EscOrders order)
        {
            OrderDistribution.Add(order);
        }
    }

    public enum OrderTableEnum { 
        ESCORDERINFO,
        SALEAPP,
        SALEORDER
    }
}
